//
//  ViewController.m
//  mixApp
//
//  Created by fantasy on 2021/6/28.
//

#import "ViewController.h"

#import "MineViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    
    UIButton * btn = [UIButton buttonWithType:UIButtonTypeCustom];
    [btn addTarget:self action:@selector(onTap) forControlEvents:UIControlEventTouchUpInside];
    [btn setTitle:@"next Native Page" forState:UIControlStateNormal];
    btn.titleLabel.font = [UIFont systemFontOfSize:15.0];
    [btn setTitleColor:[UIColor blueColor] forState:UIControlStateNormal];
    [btn setBackgroundColor:[UIColor greenColor]];
    [btn setFrame:CGRectMake(100, 220, 200, 50)];
    btn.clipsToBounds = YES;
    btn.layer.cornerRadius = 10.0;
    [self.view addSubview:btn];
    // Do any additional setup after loading the view.
}

-(void)onTap{
    MineViewController * mine = [[MineViewController alloc]init];
    mine.modalPresentationStyle = UIModalPresentationFullScreen;
    [self presentViewController:mine animated:YES completion:^{
        
    }];
}

@end
